package com.zhao.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @program: hello_jenkins
 * @description:
 * @author: Stevezhao
 * @create: 2021-07-12 18:26
 */
@RestController
public class HelloContrller {
    @GetMapping("/")
    public String hello(){
        return "Hello Jenkins";
    }


    @GetMapping("/getTime")
    public Date getTime(){
        return new Date();
    }
}
